#include "awtk.h"
#include "base/assets_manager.h"
#ifndef WITH_FS_RES
#include "assets/default/inc/ui/home_page/home_page.data"
#include "assets/default/inc/ui/system_bar/system_bar.data"
#include "assets/default/inc/ui/window_bar/window_bar.data"
#include "assets/default/inc/ui/window_line/window_line.data"
#include "assets/default/inc/ui/window_meter/window_meter.data"
#include "assets/default/inc/ui/window_pie/window_pie.data"
#include "assets/default/inc/strings/en_US.data"
#include "assets/default/inc/strings/zh_CN.data"
#include "assets/default/inc/styles/default.data"
#ifdef WITH_STB_IMAGE
#include "assets/default/inc/images/arrow_down_d.res"
#include "assets/default/inc/images/arrow_down_f.res"
#include "assets/default/inc/images/arrow_down_n.res"
#include "assets/default/inc/images/arrow_down_o.res"
#include "assets/default/inc/images/arrow_down_p.res"
#include "assets/default/inc/images/arrow_left_d.res"
#include "assets/default/inc/images/arrow_left_f.res"
#include "assets/default/inc/images/arrow_left_n.res"
#include "assets/default/inc/images/arrow_left_o.res"
#include "assets/default/inc/images/arrow_left_p.res"
#include "assets/default/inc/images/arrow_right_d.res"
#include "assets/default/inc/images/arrow_right_f.res"
#include "assets/default/inc/images/arrow_right_n.res"
#include "assets/default/inc/images/arrow_right_o.res"
#include "assets/default/inc/images/arrow_right_p.res"
#include "assets/default/inc/images/arrow_up_d.res"
#include "assets/default/inc/images/arrow_up_f.res"
#include "assets/default/inc/images/arrow_up_n.res"
#include "assets/default/inc/images/arrow_up_o.res"
#include "assets/default/inc/images/arrow_up_p.res"
#include "assets/default/inc/images/backspace.res"
#include "assets/default/inc/images/back_normal.res"
#include "assets/default/inc/images/back_pressed.res"
#include "assets/default/inc/images/bg_main.res"
#include "assets/default/inc/images/check_checked_d.res"
#include "assets/default/inc/images/check_checked_f.res"
#include "assets/default/inc/images/check_checked_n.res"
#include "assets/default/inc/images/check_checked_o.res"
#include "assets/default/inc/images/check_checked_p.res"
#include "assets/default/inc/images/check_d.res"
#include "assets/default/inc/images/check_f.res"
#include "assets/default/inc/images/check_n.res"
#include "assets/default/inc/images/check_o.res"
#include "assets/default/inc/images/check_p.res"
#include "assets/default/inc/images/clock_bg.res"
#include "assets/default/inc/images/clock_hour.res"
#include "assets/default/inc/images/clock_minute.res"
#include "assets/default/inc/images/clock_second.res"
#include "assets/default/inc/images/close_d.res"
#include "assets/default/inc/images/close_n.res"
#include "assets/default/inc/images/close_o.res"
#include "assets/default/inc/images/close_p.res"
#include "assets/default/inc/images/cross.res"
#include "assets/default/inc/images/earth.res"
#include "assets/default/inc/images/graph_normal.res"
#include "assets/default/inc/images/graph_normal_en.res"
#include "assets/default/inc/images/graph_pressed.res"
#include "assets/default/inc/images/graph_pressed_en.res"
#include "assets/default/inc/images/guage_bg.res"
#include "assets/default/inc/images/guage_bg_1.res"
#include "assets/default/inc/images/guage_bg_2.res"
#include "assets/default/inc/images/guage_pointer.res"
#include "assets/default/inc/images/guage_pointer_1.res"
#include "assets/default/inc/images/guage_pointer_2.res"
#include "assets/default/inc/images/histogram_normal.res"
#include "assets/default/inc/images/histogram_normal_en.res"
#include "assets/default/inc/images/histogram_pressed.res"
#include "assets/default/inc/images/histogram_pressed_en.res"
#include "assets/default/inc/images/icon_1_normal.res"
#include "assets/default/inc/images/icon_1_pressed.res"
#include "assets/default/inc/images/icon_2_normal.res"
#include "assets/default/inc/images/icon_2_pressed.res"
#include "assets/default/inc/images/icon_3_normal.res"
#include "assets/default/inc/images/icon_3_pressed.res"
#include "assets/default/inc/images/icon_4_normal.res"
#include "assets/default/inc/images/icon_4_pressed.res"
#include "assets/default/inc/images/icon_5_normal.res"
#include "assets/default/inc/images/icon_5_pressed.res"
#include "assets/default/inc/images/icon_6_normal.res"
#include "assets/default/inc/images/icon_6_pressed.res"
#include "assets/default/inc/images/language_en.res"
#include "assets/default/inc/images/language_zh.res"
#include "assets/default/inc/images/meter_normal.res"
#include "assets/default/inc/images/meter_normal_en.res"
#include "assets/default/inc/images/meter_pressed.res"
#include "assets/default/inc/images/meter_pressed_en.res"
#include "assets/default/inc/images/new_normal.res"
#include "assets/default/inc/images/new_pressed.res"
#include "assets/default/inc/images/num0.res"
#include "assets/default/inc/images/num1.res"
#include "assets/default/inc/images/num2.res"
#include "assets/default/inc/images/num3.res"
#include "assets/default/inc/images/num4.res"
#include "assets/default/inc/images/num5.res"
#include "assets/default/inc/images/num6.res"
#include "assets/default/inc/images/num7.res"
#include "assets/default/inc/images/num8.res"
#include "assets/default/inc/images/num9.res"
#include "assets/default/inc/images/numdot.res"
#include "assets/default/inc/images/pause_mormal.res"
#include "assets/default/inc/images/pause_pressed.res"
#include "assets/default/inc/images/pie_label_normal.res"
#include "assets/default/inc/images/pie_label_select.res"
#include "assets/default/inc/images/pie_normal.res"
#include "assets/default/inc/images/pie_normal_en.res"
#include "assets/default/inc/images/pie_pressed.res"
#include "assets/default/inc/images/pie_pressed_en.res"
#include "assets/default/inc/images/play_normal.res"
#include "assets/default/inc/images/play_pressed.res"
#include "assets/default/inc/images/radio_checked_d.res"
#include "assets/default/inc/images/radio_checked_f.res"
#include "assets/default/inc/images/radio_checked_n.res"
#include "assets/default/inc/images/radio_checked_o.res"
#include "assets/default/inc/images/radio_checked_p.res"
#include "assets/default/inc/images/radio_d.res"
#include "assets/default/inc/images/radio_f.res"
#include "assets/default/inc/images/radio_n.res"
#include "assets/default/inc/images/radio_o.res"
#include "assets/default/inc/images/radio_p.res"
#include "assets/default/inc/images/rounded_n.res"
#include "assets/default/inc/images/rounded_o.res"
#include "assets/default/inc/images/rounded_p.res"
#include "assets/default/inc/images/shift.res"
#include "assets/default/inc/images/shifton.res"
#else
#endif /*WITH_STB_IMAGE*/
#ifdef WITH_VGCANVAS
#endif /*WITH_VGCANVAS*/
#if defined(WITH_TRUETYPE_FONT)
#include "assets/default/inc/fonts/default.res"
#else /*WITH_TRUETYPE_FONT*/
#endif /*WITH_TRUETYPE_FONT*/
#endif /*WITH_FS_RES*/

ret_t assets_init(void) {
  assets_manager_t* am = assets_manager();
  assets_manager_set_theme(am, "default");

#ifdef WITH_FS_RES
  assets_manager_preload(am, ASSET_TYPE_FONT, "default");
  assets_manager_preload(am, ASSET_TYPE_STYLE, "default");
#else
  assets_manager_add(am, ui_home_page_home_page);
  assets_manager_add(am, ui_system_bar_system_bar);
  assets_manager_add(am, ui_window_bar_window_bar);
  assets_manager_add(am, ui_window_line_window_line);
  assets_manager_add(am, ui_window_meter_window_meter);
  assets_manager_add(am, ui_window_pie_window_pie);
  assets_manager_add(am, strings_en_US);
  assets_manager_add(am, strings_zh_CN);
  assets_manager_add(am, style_default);
  assets_manager_add(am, image_arrow_down_d);
  assets_manager_add(am, image_arrow_down_f);
  assets_manager_add(am, image_arrow_down_n);
  assets_manager_add(am, image_arrow_down_o);
  assets_manager_add(am, image_arrow_down_p);
  assets_manager_add(am, image_arrow_left_d);
  assets_manager_add(am, image_arrow_left_f);
  assets_manager_add(am, image_arrow_left_n);
  assets_manager_add(am, image_arrow_left_o);
  assets_manager_add(am, image_arrow_left_p);
  assets_manager_add(am, image_arrow_right_d);
  assets_manager_add(am, image_arrow_right_f);
  assets_manager_add(am, image_arrow_right_n);
  assets_manager_add(am, image_arrow_right_o);
  assets_manager_add(am, image_arrow_right_p);
  assets_manager_add(am, image_arrow_up_d);
  assets_manager_add(am, image_arrow_up_f);
  assets_manager_add(am, image_arrow_up_n);
  assets_manager_add(am, image_arrow_up_o);
  assets_manager_add(am, image_arrow_up_p);
  assets_manager_add(am, image_backspace);
  assets_manager_add(am, image_back_normal);
  assets_manager_add(am, image_back_pressed);
  assets_manager_add(am, image_bg_main);
  assets_manager_add(am, image_check_checked_d);
  assets_manager_add(am, image_check_checked_f);
  assets_manager_add(am, image_check_checked_n);
  assets_manager_add(am, image_check_checked_o);
  assets_manager_add(am, image_check_checked_p);
  assets_manager_add(am, image_check_d);
  assets_manager_add(am, image_check_f);
  assets_manager_add(am, image_check_n);
  assets_manager_add(am, image_check_o);
  assets_manager_add(am, image_check_p);
  assets_manager_add(am, image_clock_bg);
  assets_manager_add(am, image_clock_hour);
  assets_manager_add(am, image_clock_minute);
  assets_manager_add(am, image_clock_second);
  assets_manager_add(am, image_close_d);
  assets_manager_add(am, image_close_n);
  assets_manager_add(am, image_close_o);
  assets_manager_add(am, image_close_p);
  assets_manager_add(am, image_cross);
  assets_manager_add(am, image_earth);
  assets_manager_add(am, image_graph_normal);
  assets_manager_add(am, image_graph_normal_en);
  assets_manager_add(am, image_graph_pressed);
  assets_manager_add(am, image_graph_pressed_en);
  assets_manager_add(am, image_guage_bg);
  assets_manager_add(am, image_guage_bg_1);
  assets_manager_add(am, image_guage_bg_2);
  assets_manager_add(am, image_guage_pointer);
  assets_manager_add(am, image_guage_pointer_1);
  assets_manager_add(am, image_guage_pointer_2);
  assets_manager_add(am, image_histogram_normal);
  assets_manager_add(am, image_histogram_normal_en);
  assets_manager_add(am, image_histogram_pressed);
  assets_manager_add(am, image_histogram_pressed_en);
  assets_manager_add(am, image_icon_1_normal);
  assets_manager_add(am, image_icon_1_pressed);
  assets_manager_add(am, image_icon_2_normal);
  assets_manager_add(am, image_icon_2_pressed);
  assets_manager_add(am, image_icon_3_normal);
  assets_manager_add(am, image_icon_3_pressed);
  assets_manager_add(am, image_icon_4_normal);
  assets_manager_add(am, image_icon_4_pressed);
  assets_manager_add(am, image_icon_5_normal);
  assets_manager_add(am, image_icon_5_pressed);
  assets_manager_add(am, image_icon_6_normal);
  assets_manager_add(am, image_icon_6_pressed);
  assets_manager_add(am, image_language_en);
  assets_manager_add(am, image_language_zh);
  assets_manager_add(am, image_meter_normal);
  assets_manager_add(am, image_meter_normal_en);
  assets_manager_add(am, image_meter_pressed);
  assets_manager_add(am, image_meter_pressed_en);
  assets_manager_add(am, image_new_normal);
  assets_manager_add(am, image_new_pressed);
  assets_manager_add(am, image_num0);
  assets_manager_add(am, image_num1);
  assets_manager_add(am, image_num2);
  assets_manager_add(am, image_num3);
  assets_manager_add(am, image_num4);
  assets_manager_add(am, image_num5);
  assets_manager_add(am, image_num6);
  assets_manager_add(am, image_num7);
  assets_manager_add(am, image_num8);
  assets_manager_add(am, image_num9);
  assets_manager_add(am, image_numdot);
  assets_manager_add(am, image_pause_mormal);
  assets_manager_add(am, image_pause_pressed);
  assets_manager_add(am, image_pie_label_normal);
  assets_manager_add(am, image_pie_label_select);
  assets_manager_add(am, image_pie_normal);
  assets_manager_add(am, image_pie_normal_en);
  assets_manager_add(am, image_pie_pressed);
  assets_manager_add(am, image_pie_pressed_en);
  assets_manager_add(am, image_play_normal);
  assets_manager_add(am, image_play_pressed);
  assets_manager_add(am, image_radio_checked_d);
  assets_manager_add(am, image_radio_checked_f);
  assets_manager_add(am, image_radio_checked_n);
  assets_manager_add(am, image_radio_checked_o);
  assets_manager_add(am, image_radio_checked_p);
  assets_manager_add(am, image_radio_d);
  assets_manager_add(am, image_radio_f);
  assets_manager_add(am, image_radio_n);
  assets_manager_add(am, image_radio_o);
  assets_manager_add(am, image_radio_p);
  assets_manager_add(am, image_rounded_n);
  assets_manager_add(am, image_rounded_o);
  assets_manager_add(am, image_rounded_p);
  assets_manager_add(am, image_shift);
  assets_manager_add(am, image_shifton);
  assets_manager_add(am, font_default);
#ifdef WITH_VGCANVAS
#endif /*WITH_VGCANVAS*/
#endif

  tk_init_assets();
  return RET_OK;
}
